 <form id="edit" method="POST" action="editFurniture.php ">
<input type="hidden" name="furn_id" value ="<?php echo $furniture['furnitures_id']; ?>" />
<div class="pop-ups-container">
                        <h1>تعديل قطعة اثاث</h1>
                        <hr />
						
                        <table class="edit-client-table">
                            	<tr>
                                    <td>الوحدة</td>
                                    <td><select name="apart">
            
            <?php 
			
            
              if(isset($binds['id']) && $binds['id'] == -1)
                echo "<option selected = 'selected' value='-1'>الجميع</option>";
              else
                echo "<option value='-1'>الجميع</option>";
                
              $aprtes = query("SELECT apart_name,id FROM apartments WHERE owner_id=?",$_SESSION['user_id']);
              foreach($aprtes as $aprt)
              {
                
                if($furniture['apartments_id'] == $aprt['id'] )
                  echo "<option selected='selected' value='{$aprt['id']}'>{$aprt['apart_name']}</option>";
                else
                  echo "<option  value='{$aprt['id']}'>{$aprt['apart_name']}</option>";
                
              
          }
            ?>
          </select></td>
                                </tr>
                                <tr>
                                    <td>الأثاث</td>
                                    <td><select name="furn" class="">
									
									<?php	
										$i=0;
										foreach($furns_name as $furn_name){
									
										if($furniture['furniture']==$i)
										echo "<option selected='selected' value='{$i}'>{$furn_name}</option>";
                                        else
                                         echo "<option  value='{$i}'>{$furn_name}</option>";
										 $i++ ;
										}					
		                                
									?>
									</select></td>
                                </tr>
                                <tr>
                                    <td>الوصف</td>
                                    <td><input type="text" class="small-input" name="descrip" value="<?php echo $furniture['descrip']; ?>"></td>
                                </tr>
                                <tr>
                                    <td>السعر</td>
                                    <td><input type="text" class="small-input" name="price" value="<?php echo $furniture['price']; ?>"></td>
                                </tr>
                                <tr>
                                    <td>الحالة</td>
                                    <td><select name="status" class="">
									<?php	
										$i=0;
										foreach($furn_status as $status){
									
										if($furniture['fur_status']==$i)
										echo "<option selected='selected' value='{$i}'>{$status}</option>";
                                        else
                                         echo "<option  value='{$i}'>{$status}</option>";
										 $i++ ;
										}					
		                                ?>
									</select></td>
                                </tr>
                                <tr>
                                    <td>بلد المنشأ</td>
                                    <td><input type="text" class="small-input" name="source" value="<?php echo $furniture['source']; ?>"></td>
                                </tr>
                         </table>
                         <div class="edit-button">تعديل</div>
                         </div>
						 </form>